<% form_for(@member,:html=>{:enctype=>"MULTIPART/FORM-DATA"}) do |f| %>
  <%= f.error_messages %>
	<%@member.attributes.keys.sort.each do |key|%>
		<%unless key=='head_photo'%>
		<p><label for=<%="member[#{key}]"%>><%=key%></label></p>
		<p><%=f.text_field key%></p>
		<%end%>
	<%end%>
	<input type='file' name='head_photo'/>
<!-- 	<p><%=f.text_field :nickname%></p>
	<p><%=f.text_field :truename%></p>
	<p><%=f.text_field :sex%></p>
	<p><%=f.text_field :age%></p>
	<p><%=f.text_field :race%></p>
	<p><%=f.text_field :company%></p>
	<p><%=f.text_field :address%></p>
	<p><%=f.text_field :mobile%></p>
	<p><%=f.text_field :email%></p> -->
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', members_path %>
